<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<script type="text/javascript" src="<s:url value="/script/selfResize.js"/>"></script>
<script>
function show(url){
	window.open(url);
}
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
</script>
<script type="text/javascript" src="<s:url value="/script/sysOper.js"/>"></script>
<script type="text/javascript" >
	function batchDel(){
		if (confirm("您确定删除此产品负责人信息吗？11")){
			document.forms[1].action='batchDelProductManager.action';
			document.forms[1].submit();
		}
	}
	function del(id){
		if (confirm("您确定删除此产品负责人信息吗？")){
			window.location='delProductManager.action?productManager.id='+id;
		}
	}
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="980" border="0" cellspacing="0" cellpadding="0"
	align="center">
	<tr>
		<td background="<s:url value="/images/home_4a.gif"/>">
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center" bgcolor="#FFFFFF">
			<tr>
				<td>
				<table width="100%" border="0" cellpadding="0" cellspacing="0"
					background="<s:url value="/images/new/gxzl_index_2.gif"/>">
					<form action="showProductManagers2.action" method="post" target="_blank">
					<tr>
						<td width="20" height="32">&nbsp;</td>
						<td width="20"><img
							src="<s:url value="/images/new/dq_dot.gif"/>" width="15"
							height="12" /></td>
						<td>当前位置：产品管理人员</td>
						<td width="" align="right">
						产品名称：<input name="conds['product.name']" type="text" value="" size="20"  />
					        姓名：<input name="conds['person.name']" type="text" value="" size="20"  />
						<td width="100"><input type="submit" name="Submit" value="搜索" /></td>
					</tr>
					</form>
				</table>
				</td>
			</tr>
			<tr>
				<td width="20%" valign="top">
				<table width="100%" height="400"  border="0" cellspacing="0" cellpadding="0"
					align="center" bgcolor="#FFFFFF">
					<tr>
						<td width="240" valign="top" class="leftbg">
						<%@ include file="/commons/include/pmng_left.inc"%>  
						</td>
						<td valign="top" align="center">
						<s:form action="/business/product/listProductManager.action" method="post">
							<table width="660" border="0" cellspacing="0" cellpadding="0" class="aa"
								background="<s:url value="/images/catalog_manage_8b.gif"/>">
								<br/>
								<tr>
									<td><img
										src="<s:url value="/images/catalog_manage_8.gif"/>" width=660
										height=11 alt=""></td>
								</tr>
								<tr>
									<td>
									<TABLE width="98%" border="0" cellspacing="0" cellpadding="0"
										align="center" class=tablecolor2>
										<tr>
											<td width="15%" height="50">
											<div align="center">产&nbsp;&nbsp;&nbsp;品</div>
											</td>
											<td width="">
												<input name="conds['product.id']" type="hidden" value="" size="20" />
												<input name="name" type="text" value="" size="20" readonly />
												<input type="button" name="selType" value="选择"
													onClick="selectProduct()" /></td>
											<td width="15%" align="center">负责人</td>
											<td width="35%"><input name="conds['person.id']" type="hidden"
												value="${conds.person.id}" size="30" />
												<input name="person.name" type="text" value="" size="20" readonly />
												<input type="button" value="选择"
													onClick="selectMainPerson()" /></td>
										</tr>
									</TABLE>
									<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
										<TR height=30>
											<TD align=left width="10%"><input type="button"
												name="new" value="新 增"
												onClick="location.href='editProductManager.action'">
											<input type="button" name="search" onclick="submit();"
												value="查 询"> <input type="button" name="remove"
												onclick="batchDel();"
												value="删 除"></TD>
										</TR>
									</table>
									<input type="hidden" name="pageControl.usePage"
										value="${pageControl.usePage}" /> <input type="hidden"
										name="pageControl.pageNo" value="${pageControl.pageNo}" /> <input
										type="hidden" name="pageControl.totalPage"
										value="${pageControl.totalPage}" /> <input type="hidden"
										name="pageControl.pageSize" value="${pageControl.pageSize}" />
									<table width="98%" border="0" cellspacing="0" cellpadding="7"
										align="center" class=tablecolor2>
										<tr>
											<td colspan="9" align="right"><s:if
												test="pageControl.useFrontPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo-1};submit();">上一页</a>
											</s:if> <s:if test="pageControl.useNextPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo+1};submit();">下一页</a>
											</s:if> 第${pageControl.pageNo}页 共${pageControl.totalPage}页
											总${pageControl.total}条记录 每页${pageControl.pageSize}条记录</td>
										</tr>
										<tr>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">选择<label
												id="labSel"
												onclick="javascript:selAll('dCancel','dAll','ids');"
												style="cursor: hand">
											<div id="dAll">[全选]</div>
											<div id="dCancel" style="display: none">[取消]</div>
											</label></font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">所属产品</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">负责人名称</font></div>
											</td>
											<td bgcolor="9AC2EB" width="10%">
											<div align="center"><font color="#FFFFFF">是否主要负责人</font></div>
											</td>
											<td bgcolor="9AC2EB" width="12%">
											<div align="center"><font color="#FFFFFF">操作</font></div>
											</td>
										</tr>
										<s:iterator value="pageControl.results">
											<tr>
												<td>
												<div align="center"><input type="checkbox" name="ids"
													value="<s:property value="id" />"></div>
												</td>
												<td>
												<div align="center"><s:property value="product.name" /></div>
												</td>
												<td>
												<div align="center"><s:property value="person.name" /></div>
												</td>
												<td>
												<div align="center"><s:if test="isPrimary==1">是</s:if><s:else>否</s:else></div>
												</td>
												<td>
												<div align="center"><a
													href="editProductManager.action?productManager.id=${id}">编辑</a>
												<a
													href="#" onclick="del('${id}')">删除</a>
												</div>
												</td>
											</tr>
										</s:iterator>
										<tr>
											<td colspan="9" align="right"><s:if
												test="pageControl.useFrontPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo-1};submit();">上一页</a>
											</s:if> <s:if test="pageControl.useNextPage">
												<a href="#"
													onclick="document.all('pageControl.pageNo').value=${pageControl.pageNo+1};submit();">下一页</a>
											</s:if> 第${pageControl.pageNo}页 共${pageControl.totalPage}页
											总${pageControl.total}条记录 每页${pageControl.pageSize}条记录</td>
										</tr>
									</table>
									</td>
								</tr>
								<tr>
									<td><img
										src="<s:url value="/images/catalog_manage_8a.gif"/>"
										width="660" height="9"></td>
								</tr>
							</table>
						</s:form></td>
					</tr>
				</table>
</body>
<script>
	function selectProduct(){
	     var url='<s:url value="/xtreecheckbox/selectProduct.jsp?module=radio&date=" escapeAmp="false"/>'+'<%=System.currentTimeMillis()%>';
			var returnData = window.showModalDialog(url, window,
					"status:no;dialogWidth:800px;dialogHeight:600px;scroll:yes;");
			if (returnData) {
				document.forms[1]["name"].value = returnData[1];
				document.forms[1]["conds['product.id']"].value = returnData[0];
			}
	}
	
	function selectMainPerson(){
	     var url='<s:url value="/organ/toOrganTree.action?type=&path=toPersonTree&module=radio&date=" escapeAmp="false"/>'+'<%=System.currentTimeMillis()%>';
		 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:800px;dialogHeight:600px;scroll:yes;");
		 if(returnData){
		 	document.forms[1]["person.name"].value=returnData[1];
		 	document.forms[1]["conds['person.id']"].value=returnData[0];
		 }
	}
	function selectMainPerson1(){
	     var url='<s:url value="/organ/toOrganTree.action?type=&path=toPersonTree&module=radio&date=" escapeAmp="false"/>'+'<%=System.currentTimeMillis()%>';
		 var returnData=window.showModalDialog(url,window,"status:no;dialogWidth:800px;dialogHeight:600px;scroll:yes;");
		 if(returnData){
		 	document.forms[0]["person.name"].value=returnData[1];
		 	document.forms[0]["conds['person.id']"].value=returnData[0];
		 }
	}
	var obj1=document.getElementById("iTR2");
if(obj1){
	obj1.style.backgroundColor="B3DEF4";
}
</script>
</html>

